<template>
  <div class="input-button">
    <input type="button" :value="text" id="btn" :style="style">
  </div>
</template>

<script>
export default {
  name: "inputbutton",
  data() {
    return {
      style: { "background-color": "#f5f5f5", color: "#808080" }
    };
  },
  props: ["text", "color"],
  mounted() {
    if (this.color) {
      this.style = {
        "background-color":this.color
      }
    }
  }
};
</script>

<style scoped>
.input-button {
  display: flex;
  width: 65%;
  height: 2rem;
  margin-bottom: 1rem;
}
.input-button input {
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  font-size: 1.2rem;
}
</style>